using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class DoubleBlowUp : StateMachineBehaviour
{


    public override void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
    {

    }

    public override void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
    {
        Character character = animator.GetComponentInParent<Character>();
        Rigidbody2D rig = animator.GetComponentInParent<Rigidbody2D>();
        character.BlowUp(rig.velocity.x, character.blowHeight / 2, 1);
        //Vector3 pos = animator.transform.position;
        //animator.transform.position = new Vector3(pos.x, pos.y + 10f, pos.z);
        //animator.SetFloat("velocity_Y", -character.fallToGroundYVel / 2);
        //character.Ground = false;
    }

}
